home *** CD-ROM | disk | FTP | other *** search
- global gCurScreen, gPresRelList, gBookShelfList, gItemList
-
- on updateBookShelf
- set tmpStr to convertToUpperGlob(gCurScreen)
- set seeList to getaProp(gPresRelList, gCurScreen)
- set seeList to getAt(seeList, 2)
- put EMPTY into field "seeAlsoField" of castLib "internal"
- set gBookShelfList to []
- repeat with idx = 1 to count(seeList)
- set theItem to getAt(seeList, idx)
- set itemDesc to getaProp(gItemList, theItem)
- if not voidp(itemDesc) then
- case getAt(itemDesc, 2) of
- 1:
- set theType to "pct"
- 2:
- set theType to "txt"
- 3:
- set theType to "txt"
- 4:
- set theType to "aud"
- 5:
- set theType to "pct"
- 7:
- set theType to "vid"
- 10:
- set theType to "txt"
- 11:
- set theType to "aud"
- 12:
- set theType to "vid"
- 16:
- set theType to "txt"
- end case
- put getAt(itemDesc, 1) & " (" & theType & ")" & RETURN after field "seeAlsoField" of castLib "internal"
- add(gBookShelfList, theItem)
- end if
- end repeat
- set the scrollTop of member "seeAlsoField" of castLib "internal" to 0
- end
-